﻿using System;
using BusinessLogic.BusinessEntity.Entities;


namespace BankApplication.BusinessLogic.Security
{
    public class SecurityManager
    {

        public static RSAKeys GenerateRSAKeys()
        {
            return new RSAKeys();
        }


        public static string GeneratePassword()
        {
            return string.Empty;
        }

            
        /// <summary>
        /// In reality private keys are usually stored on specialized devices.
        /// In our case we simply serialize it to XML and save on the HD to be later
        /// used by the client
        /// </summary>
        public static void DumpPrivateKey(RSAPrivateKey privateKey, string xmlFileName)
        {

        }


        /// <summary>
        /// The same as for the private key
        /// </summary>
        public static void DumpPassword(string fileName, string password)
        {

        }

    }
}
